unit_threaded.property

Property-based testing.

Members

Classes

PropertyException
class PropertyException

Functions

check
void check(in uint seed = from!"std.random".unpredictableSeed, in string file = __FILE__, in size_t line = __LINE__)

Check that bool-returning F is true with randomly generated values.

checkCustom
void checkCustom(int numFuncCalls = 100, in string file = __FILE__, in size_t line = __LINE__)

For values that unit-threaded doesn't know how to generate, test that the Predicate holds, using Generator to come up with new values.

Meta